package org.budo.java.agent;

import java.lang.instrument.Instrumentation;

import org.budo.java.agent.transformer.javassist.JavassistClassFileTransformer;

/**
 * @author lmw
 */
public class BudoJavaAgent {
    public static void premain(String agentArgs, Instrumentation instrumentation) {
        System.err.println("org.budo.java.agent.BudoJavaAgent.premain(String, Instrumentation)");

        JavassistClassFileTransformer transformer = new JavassistClassFileTransformer(agentArgs);
        instrumentation.addTransformer(transformer);
    }

    public static void agentmain(String agentArgs, Instrumentation inst) {
        System.err.println("org.budo.java.agent.BudoJavaAgent.agentmain(String, Instrumentation)");
    }
}